﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>@ViewData["Title"] - 教师界面</title>
    <link href="~/layui-v2.5.5/layui/css/layui.css" rel="stylesheet">
    <link rel="stylesheet" href="~/css/myCss.css" media="all">

</head>

<body class="layui-layout-body">
    <div class="layui-layout layui-layout-admin">
        <header>
            <div class="layui-header">
                <marquee direction="left" behavior="alternate" scrollamount="10" hspace="90" vspace="16" onMouseOut="this.start()" onMouseOver="this.stop()">
                    <font color="white" size="5">
                        欢迎您，@ViewData["teacherName"] 现在是: @DateTime.Now.ToString("yyyy 年 MM 月 dd 日")
                        <div id="Hour" style="display:inline">
                            00
                            <script>
                                setInterval("hour()", 1000);
                                function hour() {
                                    if (new Date().getHours() <= 9) {
                                        document.getElementById('Hour').innerHTML = '0' + new Date().getHours();
                                    }
                                    else {
                                        document.getElementById('Hour').innerHTML = new Date().getHours();
                                    }
                                }
                            </script>
                        </div>
                        <div style="display:inline">:</div>
                        <div id="Minutes" style="display:inline">
                            00
                            <script>
                                setInterval("minutes()", 1000);
                                function minutes() {
                                    if (new Date().getMinutes() <= 9) {
                                        document.getElementById('Minutes').innerHTML = '0' + new Date().getMinutes();
                                    }
                                    else {
                                        document.getElementById('Minutes').innerHTML = new Date().getMinutes();
                                    }
                                }
                            </script>
                        </div>
                        <div style="display:inline">:</div>
                        <div id="Seconds" style="display:inline">
                            00
                            <script>
                                setInterval("seconds()", 1000);
                                function seconds() {
                                    if (new Date().getSeconds() <= 9) {
                                        document.getElementById('Seconds').innerHTML = '0' + new Date().getSeconds();
                                    }
                                    else {
                                        document.getElementById('Seconds').innerHTML = new Date().getSeconds();
                                    }

                                }
                            </script>
                        </div>
                    </font>
                </marquee>
            </div>
        </header>

        <div class="layui-side layui-bg-black">
            <div class="layui-side-scroll">
                <ul class="layui-nav layui-nav-tree">
                    <li class="layui-nav-item"><a href="/JS/Index">基本信息</a></li>
                    <li class="layui-nav-item"><a href="/JS/AwardPunish">奖惩申请</a></li>
                    <li class="layui-nav-item"><a href="/JS/Convention">会议申请</a></li>
                    <li class="layui-nav-item"><a href="/JS/Goods">物资申请</a></li>

                </ul>

                <span class="layui-nav-bar"></span>
            </div>
        </div>
        <div class="layui-body">
            @RenderBody()
        </div>
        @RenderSection("Scripts", required: false)
    </div>
</body>
</html>
